package com.wwl.cms.utils.designModeTest.iterator;

import java.util.ArrayList;
import java.util.List;

/**
 * @author wwl
 * @version 1.0
 * @date 2021/9/9 19:15
 * @description:
 */
public class InfoCollege implements College {
    List<Department> departmentList;


    public InfoCollege(){
        departmentList = new ArrayList<Department>();
        addDepartment("信息安全","信息安全");
        addDepartment("网络安全","网络安全");
        addDepartment("服务器安全","服务器安全");
    }

    @Override
    public String getName() {
        return "信息工程学院";
    }

    @Override
    public void addDepartment(String name, String desc) {
        Department department = new Department(name,desc);
        departmentList.add(department);

    }

    @Override
    public Iterable createIterable() {
        //return new InfoCollegeIterator(departmentList);
        return null;
    }
}
